package chapter13;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-03-23 下午3:32
 */
public class ListTest {
    private static final Logger LOGGER = LoggerFactory.getLogger(ListTest.class);

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        LOGGER.info("list length:{}, is empty?{}", list.size(), list.isEmpty());
        list.add("test1");
        list.add("test2");
        list.add("test3");
        list.add("test4");
        LOGGER.info("list length:{}, is empty?{}", list.size(), list.isEmpty());
        list.forEach(System.out::println);
    }
}
